/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.edu.unal.bioingenium.kbmed.knowledge.vo;

/**
 *
 * @author lariverosc
 */
public class Descriptor {

    private String descriptionId;
    private String conceptId;
    private String term;
    private short numTokens;

    /**
     *
     */
    public Descriptor() {
    }

    /**
     *
     * @param descriptionId
     */
    public Descriptor(String descriptionId) {
        this.descriptionId = descriptionId;
    }

    /**
     *
     * @return
     */
    public String getConceptId() {
        return conceptId;
    }

    /**
     *
     * @param conceptId
     */
    public void setConceptId(String conceptId) {
        this.conceptId = conceptId;
    }

    /**
     *
     * @return
     */
    public String getDescriptionId() {
        return descriptionId;
    }

    /**
     *
     * @param descriptionId
     */
    public void setDescriptionId(String descriptionId) {
        this.descriptionId = descriptionId;
    }


    /**
     *
     * @return
     */
    public String getTerm() {
        return term;
    }

    /**
     *
     * @param term
     */
    public void setTerm(String term) {
        this.term = term;
    }

    /**
     *
     * @return
     */
    public short getNumTokens() {
        return numTokens;
    }

    /**
     *
     * @param numTokens
     */
    public void setNumTokens(short numTokens) {
        this.numTokens = numTokens;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Descriptor other = (Descriptor) obj;
        if ((this.descriptionId == null) ? (other.descriptionId != null) : !this.descriptionId.equals(other.descriptionId)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.descriptionId != null ? this.descriptionId.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("conceptId:").append(conceptId).append("\t");
        builder.append("descriptionId:").append(descriptionId).append("\t");
        builder.append("term:").append(term);
        return builder.toString();
    }
}
